<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">用户ID</label>
            <div class="layui-input-block">
                <select name="uid" lay-verify="required">
                    <option value=''></option>
                    {foreach $getUserList as $k=>$v}
                    <option value='{$k}' {in name="k" value="$row.uid"}selected=""{/in}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">关联id</label>
            <div class="layui-input-block">
                <input type="text" name="link_id" class="layui-input" lay-verify="required" placeholder="请输入关联id" value="{$row.link_id|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">收支</label>
            <div class="layui-input-block">
                {foreach $getPmList as $k=>$v}
                <input type="radio" name="pm" value="{$k}" title="{$v}" {in name="k" value="$row.pm"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">账单标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" placeholder="请输入账单标题" value="{$row.title|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">明细币种</label>
            <div class="layui-input-block">
                {foreach $getCategoryList as $k=>$v}
                <input type="radio" name="category" value="{$k}" title="{$v}" {in name="k" value="$row.category"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">明细类型</label>
            <div class="layui-input-block">
                {foreach $getTypeList as $k=>$v}
                <input type="radio" name="type" value="{$k}" title="{$v}" {in name="k" value="$row.type"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">明细数字</label>
            <div class="layui-input-block">
                <input type="text" name="number" class="layui-input" lay-verify="required" placeholder="请输入明细数字" value="{$row.number|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">剩余</label>
            <div class="layui-input-block">
                <input type="text" name="balance" class="layui-input" lay-verify="required" placeholder="请输入剩余" value="{$row.balance|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" name="mark" class="layui-input" lay-verify="required" placeholder="请输入备注" value="{$row.mark|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                {foreach $getStatusList as $k=>$v}
                <input type="radio" name="status" value="{$k}" title="{$v}" {in name="k" value="$row.status"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>